# import paramiko
# hostname = '192.168.1.1'   #linux主机IP地址
# port = 22   #端口
# username = 'root'   #用户名
# password = '123qwe'    #密码
# t=paramiko.Transport((hostname,port))
# t.connect(username=username,password=password)
# sftp = paramiko.SFTPClient.from_transport(t)
# sftp.put(r'D:\wky\spider\training\trainingDetailer\test.py', '/home/py') #将windows的文件上传到linux中，put上传
# sftp.close()  
# print('上传完成！')
from os import replace
from re import split
import re

dianpingNumber={'\ue155':0,'1':1,'\ue4dd':2,'\ueef6':3,'\ued6f':4,'\uedc0':5,'\ue6f4':6,'\ue4ae':7,'\uf3df':8,'\ue13b':9}
txt='效果\ued6f.\ue13b\ue4ae\n        环境\ued6f.\ue13b\ue6f4\n        服务\ued6f.\ue13b\ue4ae'
def getReplace(txt):
    for tx in txt:
        if tx in dianpingNumber:
            txt = re.sub(tx,str(dianpingNumber[tx]),txt)
    return txt